const useEnterprise = defineStore('enterprise', () => {
  const enterprise = ref(null)

  function setEnterprise(obj: object) {
    enterprise.value = obj
  }
  function getEnterprise() {
    return unref(enterprise)
  }

  function clearEnterprise() {
    enterprise.value = null
  }

  return {
    getEnterprise,
    setEnterprise,
    clearEnterprise,
  }
})

export default useEnterprise
